
#pragma once

class  CFileItem : public CBCGPGridItem
{
	// Construction
public:	
	CFileItem(const CString& strFileName);	

	// Overrides
	virtual void OnClickButton (CPoint point);
};

class  CNewFileItem : public CBCGPGridItem
{
	// Construction
public:
	CNewFileItem(const CString& strFileName);

	CString GetPathName(){return m_strPathName;};
	void SetPathName(CString strPathName);

	// Overrides
	virtual void OnClickButton (CPoint point);

private:
	CString m_strPathName;
};

class CCheckItem : public CBCGPGridCheckItem
{
public:
	CCheckItem(bool bVal);
	~CCheckItem(void);

public:
	
};

class CdmGridCtrl : public CBCGPGridCtrl
{
public:
	CdmGridCtrl(void);
	~CdmGridCtrl(void);
protected:
	void Init();
	BOOL SelectRow (int nRow, BOOL bRedraw = TRUE);
	void OnLButtonDown(UINT nFlags, CPoint point);
};

// CButtonItem Class

class CButtonItem : public CBCGPGridItem
{
public:
	CButtonItem (LPCTSTR lpszText, UINT id);

protected:
	virtual CWnd* CreateInPlaceEdit (CRect /*rectEdit*/, BOOL& /*bDefaultFormat*/)
	{
		return NULL;
	}

	virtual BOOL OnSetCursor () const
	{
		return FALSE; /* Use default */	
	}

	virtual void OnDrawValue (CDC* pDC, CRect rect);
	virtual BOOL OnClickValue (UINT uiMsg, CPoint point);

	UINT	m_id;
};
